<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>判断PC平台</title>
</head>
<body>
<script>
     function isPC() {
        var userAgent =  navigator.userAgent.toLocaleLowerCase();
        if (userAgent.indexOf("chrome")>=0&&userAgent.indexOf("windows") >= 0) {
            alert('PC')
        }else {
            alert('no chrome and windows')
        }
    }
  isPC()
</script>
</body>
</html>
